package gui;
import java.awt.Graphics;
import java.awt.image.BufferedImage;

import javax.swing.JPanel;


public class JImagePanel extends JPanel {
	private int x=0;
	private int y=0;


	private static final long serialVersionUID = 1L;
		private BufferedImage image;
		
	     
		public void setimage(BufferedImage image){
	    	 this.image = image;
	     }
	     public BufferedImage getImage(){
	    	 return image; 
	     }

	     public void paintComponent(Graphics g) {  
	         super.paintComponent(g);
	         g.drawImage(image, 0, 0, null);
	     }
		public int getXo() {
			return x;
		}
		public int getYo() {
			return y;
		}

     
}
